<?php
namespace Admin\Controller;

class IndexController extends BaseController {
    public function index(){

        $this->display();
    }
    public function welcome(){
    	$data=M('admin_user')->where('id='.$_SESSION['uid'])->find();
    	$article_num  =M('article')->where('status =0')->count();
    	$lunbo_num  =M('lunbo')->where('status =0')->count();
    	$admin_num  =M('admin_user')->where('status =0')->count();
    	$message_num  =M('message')->count();
    	$this->assign('article_num',$article_num);
    	$this->assign('lunbo_num',$lunbo_num);
    	$this->assign('admin_num',$admin_num);
    	$this->assign('message_num',$message_num);
    	$this->assign('data',$data);
    	$this->display();
    }
}